package com.xteam.youin_supplier;

import android.app.Application;

import com.bugtags.library.Bugtags;
import com.bugtags.library.BugtagsOptions;

/**
 * Created by Curry on 2015-12-30.
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        BugtagsOptions options = new BugtagsOptions.Builder().
                trackingLocation(true).//是否获取位置
                trackingCrashLog(true).//是否收集crash
                trackingConsoleLog(true).//是否收集console log
                trackingUserSteps(true).//是否收集用户操作步骤
                crashWithScreenshot(true).//crash附带图
//                versionName("1.0.1").//自定义版本名称
//                versionCode(6).//自定义版本号
                build();
        //在这里初始化
        Bugtags.start("1ee2eb1efcf0c77f616e2c31169c63c0", this, Bugtags.BTGInvocationEventBubble);
    }
}
